home *** CD-ROM | disk | FTP | other *** search
- 190
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- WinHandle
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baWinHandle returns the main Director window or the Authorware presentation
- --- RECORDSEPARATOR ---
- window.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baWinHandle()
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Void.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set Win = baWinHandle()
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- Win := baWinHandle()
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Use this function to get the Director window for use with the other window
- --- RECORDSEPARATOR ---
- manipulation functions.
- --- RECORDSEPARATOR ---
- In the UCD version, this function returns the Authorware presentation window when
- --- RECORDSEPARATOR ---
- packaged, but the main Authorware window during authoring. When using Buddy
- --- RECORDSEPARATOR ---
- window functions on the Authorware window, you should use baWinHandle() rather
- --- RECORDSEPARATOR ---
- than the system WindowHandle variable.
- --- RECORDSEPARATOR ---
- This is necessary because in authoring mode, the presentation window is a child of
- --- RECORDSEPARATOR ---
- the main Authorware window. This causes problems with functions that rely on a
- --- RECORDSEPARATOR ---
- specific window being active, because Windows thinks the active window is
- --- RECORDSEPARATOR ---
- actually the main Authorware window, not the presentation window. By using this
- --- RECORDSEPARATOR ---
- function instead of the system WindowHandle variable, you can create a file that
- --- RECORDSEPARATOR ---
- behaves correctly in both authoring and runtime modes.
- --- RECORDSEPARATOR ---
- For example, if the presentation window is active, baActiveWindow() and
- --- RECORDSEPARATOR ---
- WindowHandle will not be the same during authoring, but will be when packaged.
- --- RECORDSEPARATOR ---
- However, baActiveWindow() and baWinHandle() will be the same in both authoring
- --- RECORDSEPARATOR ---
- and packaged modes.
- --- RECORDSEPARATOR ---
- The baWinHandle function only works in version 3.0 or later of Authorware - use
- --- RECORDSEPARATOR ---
- the baAw2Window function in earlier versions.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baStageHandle
- --- RECORDSEPARATOR ---
- baAw2Window